#define _CRT_SECURE_NO_WARNINGS 1

#include "Map.h"
#include "Set.h"

namespace YX 
{
	void test_map()
	{
		YX::map<int, int> m;

		m.Insert(make_pair(1, 1));
		m.Insert(make_pair(2, 2));
		m.Insert(make_pair(3, 3));

		m.Insert(make_pair(4, 4));
		m.Insert(make_pair(5, 5));
		m.Insert(make_pair(6, 6));

		YX::map<int, int>::iterator it = m.begin();

		++it; ++it; ++it; ++it;

		while (it != m.end())
		{
			cout << it->first << ":" << it->second << endl;
			--it;
		}
		cout << endl;

	}

	void test_set()
	{
		YX::set<int> s;

		s.Insert(1);
		s.Insert(2);
		s.Insert(3);

		YX::set<int>::iterator it = s.begin();

		/*while (it != s.end())
		{
			cout << *it << endl;
			++it;
		}
		cout << endl;*/
	}

}//


int main()
{

	YX::test_map();
	YX::test_set();

	return 0;
}